/* Buttons, switches and other reusable elements */
.block {
    padding: 30px;
    margin-bottom: 30px;
    box-sizing: border-box;
    box-shadow: var(--block-shadow);
    background-color: var(--block-bg-color);
    border-radius: var(--block-border-radius);
    transition: 0.1s ease-out;
}

    .block-description {
        display: block;
        margin: 0 auto;
        max-width: 90%;
        padding: 20px 0;
        font-size: 130%;
    }

        .block-description > p:first-child {
            margin-top: 0;
        }

        .block-description-center {
            text-align: center;
        }

        .block-description li {
            padding-bottom: 0.8em;
        }

        .block-description a {
            font-weight: 600;
        }

    .block-header {
        display: block;
        font-size: 200%;
        font-weight: 600;
        text-align: center;
        padding-top: 30px;
        padding-bottom: 20px;
        margin: 0 auto;
    }

        .block-header-big {
            font-size: 300%;
        }

    .block-subheader {
        display: block;
        font-size: 150%;
        font-weight: 400;
        text-align: center;
        margin: 0 auto;
        padding-bottom: 20px;
    }

    @media only screen and (max-width : 570px) {
        .block {
            padding: 20px;
        }
    }

.window {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    font-size: 110%;
    transform: translateX(-50%) translateY(-50%);
    margin: 0 auto;
    min-width: 200px;
    max-width: 500px;
    min-height: 200px;
    z-index: 9999;
    padding: 20px 30px 30px;
    background-color: var(--block-bg-color);
    border-radius: var(--block-border-radius);
    box-shadow: 10px 10px 100px #999;
}

    .window-close-button {
        display: block;
        position: absolute;
        right: 25px;
        top: 25px;
        font-size: 30px;
        line-height: 30px;
        cursor: pointer;
    }

    .window-title {
        display: block;
        font-size: 150%;
        font-weight: 600;
    }

    .window-button {
        margin-top: 10px;
        float: right;
    }

.avatar {
    display: inline-block;
    border-radius: 50%;
    min-height: 20px;
    min-width: 20px;
    box-sizing: border-box;
    background-color: #bdc3c7;
    vertical-align: middle;
    overflow: hidden;
    background-position: 50% 50%;
    background-size: cover;
}

    .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    opacity: 0.8;
}

.clearfix {
    width: 100%;
    height: 0;
    display: block;
    clear: both;
}

.clearfix10 {
    width: 100%;
    height: 10px;
    display: block;
    clear: both;
}

.clearfix20 {
    width: 100%;
    height: 20px;
    display: block;
    clear: both;
}

.clearfix50 {
    width: 100%;
    height: 50px;
    display: block;
    clear: both;
}

.clearfix100 {
    width: 100%;
    height: 100px;
    display: block;
    clear: both;
}

.clickable {
    cursor: pointer;
}

.button {
    display: inline-block;
    padding: 15px 18px;
    box-sizing: border-box;
    text-decoration: none;
    border-radius: var(--button-border-radius);
    background-color: var(--button-bg-color);
    border: var(--button-border);
    color: var(--button-color);
    text-align: center;
    cursor: pointer;
    line-height: 1em;
    font-weight: 500;
    transition: 0.2s ease-out;
}

    .button-round {
        border-radius: 50%;
    }

    .button:hover {
        color: var(--button-hover-color);
        background-color: var(--button-hover-bg-color);
        border: var(--button-hover-border);
    }

    .button:disabled {
        background-color: var(--button-disabled-bg-color);
        border-color: var(--button-disabled-bg-color);
    }

    .button:disabled:hover {
        color: var(--button-color);
        background-color: var(--button-disabled-bg-color);
        border-color: var(--button-disabled-bg-color);
    }

    .button-inverted {
        background-color: var(--button-color);
        color: var(--button-bg-color);
    }

        .button-inverted:hover {
            background-color: var(--button-bg-color);
            color: var(--button-color);
            border: solid 2px var(--button-color);
        }

    .button-big {
        padding: 15px 30px;
        font-size: 160%;
        font-weight: bold;
        margin: 50px auto 0;
    }

    .button-small {
        padding: 5px 10px;
        font-size: 90%;
        font-weight: normal;
    }

    .button-red {
        background-color: #ff1917;
        border-color: #ff1917;
    }

    .button-blue {
        background-color: #0088cc;
        border-color: #0088cc;
    }

.border {
    border-radius: var(--button-border-radius);
    border: var(--button-border);
    color: var(--button-color);
    padding: 5px 10px;
}

/* SLIDER THEME */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  margin: 5.25px 0;
}
input[type=range]:focus {
  outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 15.5px;
  cursor: pointer;
  box-shadow: 0.3px 0.3px 0px #000000, 0px 0px 0.3px #0d0d0d;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 7.5px;
  border: 0px solid #010101;
}
input[type=range]::-webkit-slider-thumb {
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border: 2px solid #00001e;
  height: 26px;
  width: 42px;
  border-radius: 17px;
  background: #ffffff;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5.25px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
  background: rgba(13, 13, 13, 0.78);
}
input[type=range]::-moz-range-track {
  width: 100%;
  height: 15.5px;
  cursor: pointer;
  box-shadow: 0.3px 0.3px 0px #000000, 0px 0px 0.3px #0d0d0d;
  background: rgba(0, 0, 0, 0.78);
  border-radius: 7.5px;
  border: 0px solid #010101;
}
input[type=range]::-moz-range-thumb {
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border: 2px solid #00001e;
  height: 26px;
  width: 42px;
  border-radius: 17px;
  background: #ffffff;
  cursor: pointer;
}
input[type=range]::-ms-track {
  width: 100%;
  height: 15.5px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type=range]::-ms-fill-lower {
  background: rgba(0, 0, 0, 0.78);
  border: 0px solid #010101;
  border-radius: 15px;
  box-shadow: 0.3px 0.3px 0px #000000, 0px 0px 0.3px #0d0d0d;
}
input[type=range]::-ms-fill-upper {
  background: rgba(0, 0, 0, 0.78);
  border: 0px solid #010101;
  border-radius: 15px;
  box-shadow: 0.3px 0.3px 0px #000000, 0px 0px 0.3px #0d0d0d;
}
input[type=range]::-ms-thumb {
  box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
  border: 2px solid #00001e;
  height: 26px;
  width: 42px;
  border-radius: 17px;
  background: #ffffff;
  cursor: pointer;
  height: 15.5px;
}
input[type=range]:focus::-ms-fill-lower {
  background: rgba(0, 0, 0, 0.78);
}
input[type=range]:focus::-ms-fill-upper {
  background: rgba(13, 13, 13, 0.78);
}
/* END SLIDER THEME */


.theme-switcher {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

    .theme-switcher input {
        display: none;
    }

    .theme-switcher .slider {
        display: block;
        background-color: #000;
        bottom: 0;
        cursor: pointer;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        transition: .4s;
    }

    .theme-switcher .slider:before {
        background-color: #fff;
        bottom: 4px;
        content: "";
        height: 26px;
        left: 4px;
        position: absolute;
        transition: .4s;
        width: 26px;
    }

    .theme-switcher .slider:after {
        content: "🌙";
        display: block;
        position: absolute;
        top: 12px;
        right: 5px;
        font-size: 13px;
        line-height: 13px;
    }

        .theme-switcher input:checked + .slider:after {
            content: "☀️";
            right: auto;
            left: 7px;
            font-size: 16px;
        }

    .theme-switcher input:checked + .slider {
    }

        .theme-switcher input:checked + .slider:before {
            transform: translateX(26px);
        }

    .theme-switcher .slider.round {
        border-radius: 34px;
    }

    .theme-switcher .slider.round:before {
        border-radius: 50%;
    }

.form {

}

    .form-title {
        display: block;
        font-size: 250%;
        font-weight: 600;
        text-align: center;
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .form-row {
        display: block;
        padding-bottom: 70px;
        font-size: 130%;
    }

        .form-row-center {
            display: flex;
            justify-content: center;
        }

        .form-row-right {
            display: flex;
            justify-content: flex-end;
        }

        .form-row-hidden {
            display: none;
        }

        .form-row-space-between {
            display: flex;
            justify-content: space-between;
        }

        .form-row-checkbox {
            font-size: 120%;
        }

            .form-row-checkbox label {
                display: inline-block !important;
                max-width: 80%;
                padding-left: 10px;
            }

        .form-label {
            display: block;
            padding-bottom: 10px;
        }

        .form-row input,
        .form-row textarea {
            display: block;
            width: 100%;
            margin: 0 auto;
        }

        .form-row input::selection,
        .form-row textarea::selection {
            background: var(--input-selection-color);
        }

            .form-row textarea {
                padding: 10px;
            }

            .form-row input[type=radio] {
                width: auto;
            }

            .form-row input[type=text],
            .form-row input[type=email] {
                text-align: center;
            }

            .form-row input[type=checkbox] {
                display: inline-block;
                vertical-align: middle;
                width: auto;
                transform: scale(1.5);
                position: relative;
                top: -2px;
            }

            .form-row-help {
                padding-top: 10px;
                display: block;
                font-size: 70%;
                opacity: 0.6;
                max-width: 65%;
                margin: 0 auto;
            }

                .form-row-help-wide {
                    max-width: 100%;
                }

            .form-row-errors {
                display: block;
                font-weight: bold;
                color: #ff192f;
                padding-top: 10px;
                font-size: 90%;
            }

                .form-row-errors li {
                    list-style: none;
                    padding: 0;
                }

        .form-row-input-big {

        }

        .form-warning {
            font-size: 90%;
            text-align: center;
            background-color: rgba(243, 255, 81, 0.3);
        }

.simple-grid-2-auto {
    display: grid;
    grid-template-columns: minmax(auto, min-content) minmax(auto, max-content);
    grid-column-gap: 20px;
}

    @media only screen and (max-width : 570px) {
        .simple-grid-2-auto {
            grid-template-columns: auto;
        }
    }

.ratio-16-9 {
    display: block;
    width: 100%;
    padding-top: 56.25%;
    position: relative;
}

    .ratio-16-9 > * {
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
    }

.twitter-tweet {
    margin: 10px auto;
}


.link-favicon {
    display: inline-block;
    height: 1.1em;
    width: 1.1em;
    background-position: center center;
    background-size: cover;
    vertical-align: middle;
    padding-right: 0.2em;
}

    .link-favicon i {
        font-size: 140%;
    }

    footer .link-favicon,
    .network .link-favicon,
    .intro .link-favicon,
    .post-header .link-favicon,
    .landing .link-favicon,
    .people .link-favicon {
        display: none;
    }

.show-on-iphone {
    display: none !important;
}

.no-underline {
    text-decoration: none;
}

.with-underline {
    text-decoration: underline;
}

@media only screen and (max-width : 570px) {
    .hide-on-iphone {
        display: none !important;
    }

    .show-on-iphone {
        display: block !important;
    }
}

@media only screen and (max-width : 1024px)  {
    .hide-on-ipad {
        display: none;
    }
}

.CodeMirror-line {
    word-break: break-word !important;
}
.CodeMirror-cursor {
    border-color: var(--input-color);
}

.topic {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    padding: 5px 13px 5px 5px;
    text-decoration: none;
    background-color: var(--opposite-bg-color);
    color: #FFF;
    font-size: 110%;
    max-width: 300px;
    line-height: 1.3em;
    border-radius: 20px;
    overflow: hidden;
    transition: none;
}

    .topic-gradient {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        background: -moz-linear-gradient(top,  rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top,  rgba(255,255,255,0.25) 0%,rgba(255,255,255,0) 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to top,  rgba(255,255,255,0.25) 0%,rgba(255,255,255,0) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    }

    .topic-icon {
        display: inline-block;
        vertical-align: middle;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        background-color: #FFF;
        border: solid 2px #FFF;
        overflow: hidden;
    }

    .topic-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .topic-name {
        padding-left: 5px;
        vertical-align: middle;
        font-weight: 500;
    }

        .topic:hover .topic-name {
            color: #FFF;
        }

    .topic-type-inline {
        padding: 2px 9px 2px 3px;
        font-size: 90%;
        top: -1px;
    }

        .topic-type-inline .topic-icon {
            width: 15px;
            height: 15px;
        }

        .topic-type-inline .topic-name {
            padding-left: 1px;
        }

    .topic-type-card {
        display: flex;
        margin-top: 10px;
        padding: 10px 20px 10px 10px;
        box-sizing: border-box;
        align-items: center;
        font-size: 100%;
        border-radius: 30px;
    }

        .topic-type-card:hover {
            transform: translateY(-2px);
            transition: .2s;
        }

        .topic-type-card .topic-name {
            display: inline-block;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            padding: 0;
            vertical-align: middle;
        }

        .topic-type-card .topic-icon {
            display: inline-block;
            width: 35px;
            height: 35px;
            margin: 0 5px 0 0;
        }

    .topic-type-post {
        display: flex;
        align-items: center;
    }

        .topic-type-post:not(:only-child) {
            margin-right: 10px;
        }

img.emoji {
   height: 1.2em;
   width: 1.2em;
   margin: 0 .05em 0 .1em;
   vertical-align: -0.25em;
}

.text-center {
    text-align: center;
}

.text-80 {
    font-size: 80%;
}

.text-120 {
    font-size: 120%;
}

.text-140 {
    font-size: 140%;
}

.text-200 {
    font-size: 200%;
}

.big-radio {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 20px 0;
    font-size: 17px;
}

    @media only screen and (max-width : 620px) {
        .big-radio {
            flex-direction: column;
        }
        .big-radio .big-radio-item {
            min-height: fit-content;
        }
    }

    .big-radio-item {
        flex: 1;
        display: block;
        cursor: pointer;
        position: relative;
        min-height: 250px;
    }

    .big-radio-label {
        display: block;
        cursor: pointer;
        width: 100%;
        height: 100%;
        padding: 10px;
        box-sizing: border-box;
        text-decoration: none;
        box-shadow: var(--block-shadow);
        background-color: var(--block-bg-color);
        border-radius: 10px;
        border: var(--block-border);
        text-align: center;
    }

    .big-radio-item input {
        position: absolute;
        bottom: 0;
        right: 0;
        opacity: 0.01;
    }

    .big-radio-item input:checked + .big-radio-label {
        background-color: var(--opposite-block-bg-color);
        color: var(--opposite-text-color);
    }

    .big-radio-item input:checked + .big-radio-label a {
        color: var(--opposite-text-color);
    }

    .big-radio-label:hover {
        transition: 0.5s ease-out;
        box-shadow: 2px 2px 8px 0 rgba(69, 70, 70, 0.12);
    }

        .big-radio-label i {
            display: block;
            font-size: 60px;
            padding-top: 20px;
        }

        .big-radio-title {
            display: block;
            padding: 20px 10px 10px;
            font-weight: 500;
            font-size: 120%;
            line-height: 1.3em;
        }

        .big-radio-description {
            display: block;
            padding: 10px;
        }


.zoom-on-hover:hover {
    transform: scale(1.05);
    transition: transform .2s;
}
